<template>
  <van-tabbar v-model="active">
    <van-tabbar-item icon="home-o">主页</van-tabbar-item>
    <van-tabbar-item icon="cart-circle-o" @click="goShopCar">购物车</van-tabbar-item>
    <van-tabbar-item icon="friends-o">我的书城</van-tabbar-item>
  </van-tabbar>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
  methods: {
      goShopCar: function() {
          this.$router.push('shopCar')
      },
  }
};
</script>

